﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WareHouse.Domain.Procurements;

namespace WareHose.Application.Procurements.Dto
{
    /// <summary>
    /// 采购Dto
    /// </summary>
    public class ProcurementDto
    {
        /// <summary>
        /// 采购ID
        /// </summary>
        public string ProcurementId { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        public string ProcurementCode { get; set; }

        

        /// <summary>
        /// 编号
        /// </summary>
        public string SupplierCode { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 收货时间
        /// </summary>
        public DateTime ReceiptTime { get; set; }

        /// <summary>
        /// 采购人
        /// </summary>
        public string MakerName { get; set; }

        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime MakerTime { get; set; }

        /// <summary>
        /// 是否入账
        /// </summary>
        public bool IsEntry { get; set; }

        /// <summary>
        /// 是否退货
        /// </summary>
        public bool IsReFund { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public ProcurementStatus ProcurementStatus { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }


        /// <summary>
        /// 采购产品ID
        /// </summary>
        public string ShoppingId { get; set; }

        /// <summary>
        /// 产品ID 外键
        /// </summary>
        public string ProductId { get; set; }


        /// <summary>
        /// 购买数量
        /// </summary>
        public int BuyNumber { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        public decimal SumPrice { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 厂商编码
        /// </summary>
        public string FacturerCode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int ProductTypeId { get; set; }
        /// <summary>
        /// 存储单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 预警（下）
        /// </summary>
        public int MinWarn { get; set; }
        /// <summary>
        /// 预警（上）
        /// </summary>
        public int MaxWarn { get; set; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public string PackType { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }
    }
}
